package com.example.football.mapper;

import com.example.football.pojo.Peoplelikestar;
import com.example.football.pojo.Peopleliketeam;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface PeoplelikestarMapper {
    @Select("select * from peoplelikestar  where likestar=#{likestar} and peopleid=#{peopleid}")
    Peoplelikestar findUserByLikestar(@Param("peopleid") Integer peopleid, @Param("likestar") String likestar);


    @Insert("insert into peoplelikestar values(#{id},#{peopleid},#{likestar})")
    @Options(useGeneratedKeys = true,keyProperty = "id",keyColumn = "id")
    void insert(Peoplelikestar peoplelikestar);
}
